package cn.mall.base.constants;

//系统常量
public class BaseConstants {

    /**
     * redis主key
     */
    public static final String REDIS = "";



    /**
     * 用户代理 Linux
     */
    public class Crawler{
        public static final String USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36";
        public static final String COOKIE = "";

    }

    /**
     * 订单状态
     */
    public class Order{
        public static final int PENDING_PROCESSING = 7 ; //"待接单";
        public static final int STATE_PENDORDER = 1 ; //"待接单";
//        public static final int STATE_INLINE = 1 ; //"排队中";
        public static final int STATE_ONGOING = 2 ; //"进行中";
        public static final int STATE_FINISHED = 3 ; //"已完成";
        public static final int STATE_CNACLEOEDER = 4 ; //"订单取消";
        public static final int STATE_PENDING_REFUND = 5; //退款中；  6 异常
    }

    /**
     * 后台账号类型 1 管理员 2 商家
     */
    public class AuthAccountType{
        public static final int MANAGER_TYPE = 1; //"管理员",
        public static final int BUSINESS_TYPE = 2; //"商家",
    }

    /**
     *  账号是否可用 1 可用 2 不可用
     */
    public class AccountDisable{
        public static final int ACCOUNTABLE = 1 ; //"账号可用",
        public static final int ACCOUNTDISABLE = 2 ; //"账号不可用",
    }

    /**
     * 店铺审核状态
     */
    public class ShopAudit{
        public static final int STATE_WAIT_AUTID = 0 ; //"审核失败",
        public static final int STATE_NORMAL = 1 ; //"审核成功",
    }


    /**
     * 商品上下架 以及 商品审核状态
     */
    public class Goods{
        public static final int STATE_WAIT_GOODS_OFFSHELF = 0 ; //"已上架",
        public static final int STATE_GOODS_SHELF = 1 ; //"下架",
        public static final int STATE_WAIT_GOODS_NOAUTID= 0 ; //"审核驳回",
        public static final int STATE_GOODS_AUTID = 1 ; //"审核通过",
    }

    /**
     * 短信常量类
     */


    /**
     * 手机验证码存入redis key的前缀
     */
    public class MessageCode {
        //注册
        public static final String REGISTER_SMS_CODE = "register";
        //登录
        public static final String LOGIN_SMS_CODE = "login";
        //修改密码
        public static final String CHANGEPASSWORD_SMS_CODE = "changepassword";
        //绑定微信
        public static final String BINDWECHAT_SMS_CODE = "bindwechat";
    }

}
